package la.iok.hzsvn.lewin.movie.cloud.model;

import java.util.Objects;

public class UserParam {
    /**
     * 手机号
     */
    private String phoneNumber;
    /**
     * 验证码
     */
    private String code;
    /**
     * 登录密码
     */
    private String password;
    /**
     * 用户角色
     */
    private String role;
    /**
     * 用户所属组织
     */
    private Long orgUnitId;
    /**
     * 二维码标识
     */
    private String uuid;

    private int gender;

    public String getPhoneNumber() {
        return phoneNumber;
    }

    public void setPhoneNumber(String phoneNumber) {
        this.phoneNumber = phoneNumber;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getRole() {
        return role;
    }

    public void setRole(String role) {
        this.role = role;
    }

    public Long getOrgUnitId() {
        return orgUnitId;
    }

    public void setOrgUnitId(Long orgUnitId) {
        this.orgUnitId = orgUnitId;
    }

    public String getUuid() {
        return uuid;
    }

    public void setUuid(String uuid) {
        this.uuid = uuid;
    }

    public int getGender() {
        return gender;
    }

    public void setGender(int gender) {
        this.gender = gender;
    }
    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        UserParam userParam = (UserParam) o;
        return Objects.equals(phoneNumber, userParam.phoneNumber) && Objects.equals(code, userParam.code) && Objects.equals(password, userParam.password) && Objects.equals(role, userParam.role) && Objects.equals(orgUnitId, userParam.orgUnitId) && Objects.equals(uuid, userParam.uuid);
    }

    @Override
    public int hashCode() {
        return Objects.hash(phoneNumber, code, password, role, orgUnitId, uuid);
    }

}
